export default function (req, res) {
    // Define mock data sets
    const payTypes = [1, 2, 3, 4];
  
    // Simulate a successful school configuration response
    return new Promise((resolve) => {
      setTimeout(() => {
        resolve({
          code: 0,
          message: '成功！',
          data: {
            storeId: 1001,
            storeName: '模拟校区',
            zhiniuDirect:true,
            payTypes: payTypes.slice(0, Math.floor(Math.random() * payTypes.length) + 1), // Return a random subset of pay types
            classTimeCost: Math.floor(Math.random() * 500) + 100, // Random cost between 100 and 599
          },
          timestamp: Date.now(),
          requestId: 'requestId_' + Math.random().toString(36).substring(2, 15),
          signature: 'signature_' + Math.random().toString(36).substring(2, 15),
        });
      }, 100);
    });
  }